<!doctype html>
<html lang="zh-CN">
<head>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    
    <meta name="referrer" content="no-referrer-when-downgrade">
    

    <title>转载-arthas常见用法 | Anttu&#39;s Blog</title>
    <meta property="og:title" content="转载-arthas常见用法 - Anttu&#39;s Blog">
    <meta property="og:type" content="article">
        
    <meta property="article:published_time" content='2022-08-11T00:29:47&#43;08:00'>
        
        
    <meta property="article:modified_time" content='2022-08-11T00:29:47&#43;08:00'>
        
    <meta name="Keywords" content="golang,go语言,go语言笔记,anttu,java,博客,bash,linux笔记,python笔记,公众号,小程序">
    <meta name="description" content="arthas常见用法">
        
    <meta name="author" content="Anttu">
    <meta property="og:url" content="https://anttu.gitee.io/post/2022-08-11-arthas/">
    <link rel="shortcut icon" href='/favicon.ico'  type="image/x-icon">

    <link rel="stylesheet" href='/css/normalize.css'>
    <link rel="stylesheet" href='/css/style.css'>
    <script type="text/javascript" src="//cdn.bootcdn.net/ajax/libs/jquery/3.4.1/jquery.min.js"></script>

    
    
    
    
    
    
        <link rel="stylesheet" href='/css/asciinema-player.css'>
    
</head>


<body>
    <header id="header" class="clearfix">
    <div class="container">
        <div class="col-group">
            <div class="site-name ">
                
                    <a id="logo" href="https://anttu.gitee.io/">
                        Anttu&#39;s Blog
                    </a>
                
                <p class="description">一位Java开发者，喜欢研究技术，同时也在学习Golang和Python中，对服务器、Linux使用比较熟悉。欢迎添加技术交流QQ群：655158296</p>
            </div>
            <div>
                <nav id="nav-menu" class="clearfix">
                    <a class="current" href="https://anttu.gitee.io/">首页</a>
                    
                    <a  href="https://anttu.gitee.io/archives/" title="归档">归档</a>
                    
                    <a  href="https://anttu.gitee.io/tags/" title="分类">分类</a>
                    
                    <a  href="https://anttu.gitee.io/about/" title="关于">关于</a>
                    
                </nav>
            </div>
        </div>
    </div>
</header>

    <div id="body">
        <div class="container">
            <div class="col-group">

                <div class="col-8" id="main">
                    
<div class="res-cons">
    <style type="text/css">
    .post-toc {
        position: fixed;
        width: 200px;
        margin-left: -210px;
        padding: 5px 10px;
        font-family: Athelas, STHeiti, Microsoft Yahei, serif;
        font-size: 12px;
        border: 1px solid rgba(0, 0, 0, .07);
        border-radius: 5px;
        background-color: rgba(255, 255, 255, 0.98);
        background-clip: padding-box;
        -webkit-box-shadow: 1px 1px 2px rgba(0, 0, 0, .125);
        box-shadow: 1px 1px 2px rgba(0, 0, 0, .125);
        word-wrap: break-word;
        white-space: nowrap;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
        z-index: 999;
        cursor: pointer;
        max-height: 70%;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .post-toc .post-toc-title {
        width: 100%;
        margin: 0 auto;
        font-size: 20px;
        font-weight: 400;
        text-transform: uppercase;
        text-align: center;
    }

    .post-toc .post-toc-content {
        font-size: 15px;
    }

    .post-toc .post-toc-content>nav>ul {
        margin: 10px 0;
    }

    .post-toc .post-toc-content ul {
        padding-left: 20px;
        list-style: square;
        margin: 0.5em;
        line-height: 1.8em;
    }

    .post-toc .post-toc-content ul ul {
        padding-left: 15px;
        display: none;
    }

    @media print,
    screen and (max-width:1057px) {
        .post-toc {
            display: none;
        }
    }
</style>
<div class="post-toc" style="position: absolute; top: 188px;">
    <h2 class="post-toc-title">文章目录</h2>
    <div class="post-toc-content">
        <nav id="TableOfContents">
  <ul>
    <li><a href="#前言">前言</a></li>
    <li><a href="#1使用场景">1、使用场景</a></li>
    <li><a href="#2安装">2、安装</a></li>
    <li><a href="#3常用命令">3、常用命令</a></li>
    <li><a href="#31stack">3.1、stack</a></li>
    <li><a href="#32jad">3.2、jad</a></li>
    <li><a href="#33sc">3.3、sc</a></li>
    <li><a href="#34watch">3.4、watch</a></li>
    <li><a href="#35trace">3.5、trace</a></li>
    <li><a href="#36jobs">3.6、jobs</a></li>
    <li><a href="#37logger">3.7、logger</a></li>
    <li><a href="#38dashboard">3.8、dashboard</a></li>
    <li><a href="#39redefine">3.9、redefine</a></li>
    <li><a href="#310其他">3.10、其他</a></li>
  </ul>
</nav>
    </div>
</div>
<script type="text/javascript">
    $(document).ready(function () {
        var postToc = $(".post-toc");
        if (postToc.length) {
            var leftPos = $("#main").offset().left;
            if (leftPos < 220) {
                postToc.css({ "width": leftPos - 10, "margin-left": (0 - leftPos) })
            }

            var t = postToc.offset().top - 20,
                a = {
                    start: {
                        position: "absolute",
                        top: t
                    },
                    process: {
                        position: "fixed",
                        top: 20
                    },
                };
            $(window).scroll(function () {
                var e = $(window).scrollTop();
                e < t ? postToc.css(a.start) : postToc.css(a.process)
            })
        }

        if ($("#TableOfContents").children().length < 1) {
            $(".post-toc").remove();
        }
    })
</script>
    <article class="post">
        <header>
            <h1 class="post-title">转载-arthas常见用法</h1>
        </header>
        <date class="post-meta meta-date">
            2022年8月11日
        </date>
        
        <div class="post-meta">
            <span>|</span>
            
            <span class="meta-category">
                <a href='/categories/arthas' target="_blank">arthas</a>
            </span>
            
        </div>
        
        
        <div class="post-meta">
            <span id="busuanzi_container_page_pv">|<span id="busuanzi_value_page_pv"></span><span>
                    阅读</span></span>
        </div>
        
        
        <div class="clear" style="display: none">
            <div class="toc-article">
                <div class="toc-title">文章目录</div>
            </div>
        </div>
        
        <div class="post-content">
            <h2 id="前言">前言</h2>
<p>Arthas是Alibaba开源的Java诊断工具，动态跟踪Java代码；实时监控JVM状态，可以在不中断程序执行的情况下轻松完成JVM相关问题排查工作 。支持JDK 6+，支持Linux/Mac/Windows。这个工具真的很好用，而且入门超简单，十分推荐。</p>
<h2 id="1使用场景">1、使用场景</h2>
<ul>
<li>1、这个类从哪个 jar 包加载的？为什么会报各种类相关的 Exception？</li>
<li>2、我改的代码为什么没有执行到？难道是我没 commit？分支搞错了？</li>
<li>3、遇到问题无法在线上 debug，难道只能通过加日志再重新发布吗？</li>
<li>4、线上遇到某个用户的数据处理有问题，但线上同样无法 debug，线下无法重现！</li>
<li>5、是否有一个全局视角来查看系统的运行状况？</li>
<li>6、有什么办法可以监控到JVM的实时运行状态？接下来，围绕这6个问题，学习下Arthas的基本用法。</li>
</ul>
<h2 id="2安装">2、安装</h2>
<p>执行下面命令下载</p>
<div class="highlight"><div style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">
<table style="border-spacing:0;padding:0;margin:0;border:0;"><tr><td style="vertical-align:top;padding:0;margin:0;border:0;">
<pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1
</span></code></pre></td>
<td style="vertical-align:top;padding:0;margin:0;border:0;;width:100%">
<pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>wget https://alibaba.github.io/arthas/arthas-boot.jar
</span></span></code></pre></td></tr></table>
</div>
</div><p>用java -jar的方式启动</p>
<div class="highlight"><div style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">
<table style="border-spacing:0;padding:0;margin:0;border:0;"><tr><td style="vertical-align:top;padding:0;margin:0;border:0;">
<pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">2
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">3
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">4
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">5
</span></code></pre></td>
<td style="vertical-align:top;padding:0;margin:0;border:0;;width:100%">
<pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>java -jar arthas-boot.jar
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span><span style="color:#000;font-weight:bold">[</span>INFO<span style="color:#000;font-weight:bold">]</span> Found existing java process, please choose one and hit RETURN.
</span></span><span style="display:flex;"><span>* <span style="color:#000;font-weight:bold">[</span>1<span style="color:#000;font-weight:bold">]</span>: <span style="color:#099">79952</span> cn.test.MobileApplication
</span></span><span style="display:flex;"><span>  <span style="color:#000;font-weight:bold">[</span>2<span style="color:#000;font-weight:bold">]</span>: <span style="color:#099">93872</span> org.jetbrains.jps.cmdline.Launcher
</span></span></code></pre></td></tr></table>
</div>
</div><p>然后输入数字，选择你想要监听的应用，回车即可</p>
<h2 id="3常用命令">3、常用命令</h2>
<p>当前版本v3.1.4</p>
<div class="highlight"><div style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">
<table style="border-spacing:0;padding:0;margin:0;border:0;"><tr><td style="vertical-align:top;padding:0;margin:0;border:0;">
<pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">2
</span></code></pre></td>
<td style="vertical-align:top;padding:0;margin:0;border:0;;width:100%">
<pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span><span style="color:#000;font-weight:bold">[</span>arthas@79952<span style="color:#000;font-weight:bold">]</span>$ version
</span></span><span style="display:flex;"><span>3.1.4
</span></span></code></pre></td></tr></table>
</div>
</div><h2 id="31stack">3.1、stack</h2>
<p>输出当前方法被调用的调用路径</p>
<p>很多时候我们都知道一个方法被执行，但是有很多地方调用了它，你并不知道是谁调用了它，此时你需要的是 stack 命令。</p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>class-pattern</td>
<td>类名表达式匹配</td>
</tr>
<tr>
<td>method-pattern</td>
<td>方法名表达式匹配</td>
</tr>
</tbody>
</table>
<div class="highlight"><div style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">
<table style="border-spacing:0;padding:0;margin:0;border:0;"><tr><td style="vertical-align:top;padding:0;margin:0;border:0;">
<pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">2
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">3
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">4
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">5
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">6
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">7
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">8
</span></code></pre></td>
<td style="vertical-align:top;padding:0;margin:0;border:0;;width:100%">
<pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span><span style="color:#000;font-weight:bold">[</span>arthas@79952<span style="color:#000;font-weight:bold">]</span>$ stack com.baomidou.mybatisplus.extension.service.IService getOne
</span></span><span style="display:flex;"><span>Press Q or Ctrl+C to abort.
</span></span><span style="display:flex;"><span>Affect<span style="color:#000;font-weight:bold">(</span>class-cnt:202 , method-cnt:209<span style="color:#000;font-weight:bold">)</span> cost in <span style="color:#099">10761</span> ms.
</span></span><span style="display:flex;"><span><span style="color:#008080">ts</span><span style="color:#000;font-weight:bold">=</span>2019-11-13 11:49:13;<span style="color:#008080">thread_name</span><span style="color:#000;font-weight:bold">=</span>http-nio-8801-exec-6;<span style="color:#008080">id</span><span style="color:#000;font-weight:bold">=</span>2d;<span style="color:#008080">is_daemon</span><span style="color:#000;font-weight:bold">=</span>true;<span style="color:#008080">priority</span><span style="color:#000;font-weight:bold">=</span>5;<span style="color:#008080">TCCL</span><span style="color:#000;font-weight:bold">=</span>org.springframework.boot.web.embedded.tomcat.TomcatEmbeddedWebappClassLoader@a6c54c3
</span></span><span style="display:flex;"><span>    @com.baomidou.mybatisplus.extension.service.impl.ServiceImpl.getOne<span style="color:#000;font-weight:bold">()</span>
</span></span><span style="display:flex;"><span>        at com.baomidou.mybatisplus.extension.service.IService.getOne<span style="color:#000;font-weight:bold">(</span>IService.java:230<span style="color:#000;font-weight:bold">)</span>
</span></span><span style="display:flex;"><span>        ...... ......
</span></span><span style="display:flex;"><span>        at cn.test.mobile.controller.order.OrderController.getOrderInfo<span style="color:#000;font-weight:bold">(</span>OrderController.java:500<span style="color:#000;font-weight:bold">)</span>
</span></span></code></pre></td></tr></table>
</div>
</div><p>可以看到OrderController.java的第500行调用了这个getOne接口。</p>
<p>注意这个命令需要调用后才会触发日志，相似的还有watch、trace等</p>
<h2 id="32jad">3.2、jad</h2>
<p>反编译指定已加载类的源码</p>
<p>有时候，版本发布后，代码竟然没有执行，代码是最新的吗，这时可以使用jad反编译相应的class。</p>
<div class="highlight"><div style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">
<table style="border-spacing:0;padding:0;margin:0;border:0;"><tr><td style="vertical-align:top;padding:0;margin:0;border:0;">
<pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1
</span></code></pre></td>
<td style="vertical-align:top;padding:0;margin:0;border:0;;width:100%">
<pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>jad cn.test.mobile.controller.order.OrderController
</span></span></code></pre></td></tr></table>
</div>
</div><p>仅编译指定的方法</p>
<div class="highlight"><div style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">
<table style="border-spacing:0;padding:0;margin:0;border:0;"><tr><td style="vertical-align:top;padding:0;margin:0;border:0;">
<pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">2
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">3
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">4
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">5
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">6
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">7
</span></code></pre></td>
<td style="vertical-align:top;padding:0;margin:0;border:0;;width:100%">
<pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>jad cn.test.mobile.controller.order.OrderController getOrderInfo
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span>ClassLoader:
</span></span><span style="display:flex;"><span>@RequestMapping<span style="color:#000;font-weight:bold">(</span><span style="color:#008080">value</span><span style="color:#000;font-weight:bold">={</span><span style="color:#d14">&#34;getOrderInfo&#34;</span><span style="color:#000;font-weight:bold">}</span>, <span style="color:#008080">method</span><span style="color:#000;font-weight:bold">={</span>RequestMethod.POST<span style="color:#000;font-weight:bold">})</span>
</span></span><span style="display:flex;"><span>public Object getOrderInfo<span style="color:#000;font-weight:bold">(</span>HttpServletRequest request, @RequestBody Map map<span style="color:#000;font-weight:bold">)</span> <span style="color:#000;font-weight:bold">{</span>
</span></span><span style="display:flex;"><span>    ResponseVo <span style="color:#008080">responseVo</span> <span style="color:#000;font-weight:bold">=</span> new ResponseVo<span style="color:#000;font-weight:bold">()</span>;
</span></span><span style="display:flex;"><span>    ... ... ...  ...
</span></span></code></pre></td></tr></table>
</div>
</div><h2 id="33sc">3.3、sc</h2>
<p>“Search-Class” 的简写 ，查看JVM已加载的类信息
有的时候，你只记得类的部分关键词，你可以用sc获取完整名称
当你碰到这个错的时候“ClassNotFoundException”或者“ClassDefNotFoundException”，你可以用这个命令验证下</p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>class-pattern</td>
<td>类名表达式匹配</td>
</tr>
<tr>
<td>method-pattern</td>
<td>方法名表达式匹配</td>
</tr>
<tr>
<td>[d]</td>
<td>输出当前类的详细信息，包括这个类所加载的原始文件来源、类的声明、加载的ClassLoader等详细信息。 如果一个类被多个ClassLoader所加载，则会出现多次</td>
</tr>
</tbody>
</table>
<p>模糊搜索</p>
<div class="highlight"><div style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">
<table style="border-spacing:0;padding:0;margin:0;border:0;"><tr><td style="vertical-align:top;padding:0;margin:0;border:0;">
<pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">2
</span></code></pre></td>
<td style="vertical-align:top;padding:0;margin:0;border:0;;width:100%">
<pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>sc *OrderController*
</span></span><span style="display:flex;"><span>cn.test.mobile.controller.order.OrderController
</span></span></code></pre></td></tr></table>
</div>
</div><p>打印类的详细信息 sc -d</p>
<div class="highlight"><div style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">
<table style="border-spacing:0;padding:0;margin:0;border:0;"><tr><td style="vertical-align:top;padding:0;margin:0;border:0;">
<pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 1
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 2
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 3
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 4
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 5
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 6
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 7
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 8
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 9
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">10
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">11
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">12
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">13
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">14
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">15
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">16
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">17
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">18
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">19
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">20
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">21
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">22
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">23
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">24
</span></code></pre></td>
<td style="vertical-align:top;padding:0;margin:0;border:0;;width:100%">
<pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>sc -d cn.test.mobile.controller.order.OrderController
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span> class-info        cn.test.mobile.controller.order.OrderController
</span></span><span style="display:flex;"><span> code-source       /F:/IDEA-WORKSPACE-TEST-qyb/trunk/BE/mobile/target/classes/
</span></span><span style="display:flex;"><span> name              cn.test.mobile.controller.order.OrderController
</span></span><span style="display:flex;"><span> isInterface       <span style="color:#0086b3">false</span>
</span></span><span style="display:flex;"><span> isAnnotation      <span style="color:#0086b3">false</span>
</span></span><span style="display:flex;"><span> isEnum            <span style="color:#0086b3">false</span>
</span></span><span style="display:flex;"><span> isAnonymousClass  <span style="color:#0086b3">false</span>
</span></span><span style="display:flex;"><span> isArray           <span style="color:#0086b3">false</span>
</span></span><span style="display:flex;"><span> isLocalClass      <span style="color:#0086b3">false</span>
</span></span><span style="display:flex;"><span> isMemberClass     <span style="color:#0086b3">false</span>
</span></span><span style="display:flex;"><span> isPrimitive       <span style="color:#0086b3">false</span>
</span></span><span style="display:flex;"><span> isSynthetic       <span style="color:#0086b3">false</span>
</span></span><span style="display:flex;"><span> simple-name       OrderController
</span></span><span style="display:flex;"><span> modifier          public
</span></span><span style="display:flex;"><span> annotation        org.springframework.web.bind.annotation.RestController,org.springframework.web.bind.annotation.Requ
</span></span><span style="display:flex;"><span>                   estMapping
</span></span><span style="display:flex;"><span> interfaces
</span></span><span style="display:flex;"><span> super-class       +-cn.test.mobile.controller.BaseController
</span></span><span style="display:flex;"><span>                     +-java.lang.Object
</span></span><span style="display:flex;"><span> class-loader      +-sun.misc.Launcher<span style="color:#008080">$AppClassLoader</span>@18b4aac2
</span></span><span style="display:flex;"><span>                     +-sun.misc.Launcher<span style="color:#008080">$ExtClassLoader</span>@480bdb19
</span></span><span style="display:flex;"><span> classLoaderHash   18b4aac2
</span></span></code></pre></td></tr></table>
</div>
</div><p>与之相应的还有sm( “Search-Method”  )，查看已加载类的方法信息</p>
<p>查看String里的方法</p>
<div class="highlight"><div style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">
<table style="border-spacing:0;padding:0;margin:0;border:0;"><tr><td style="vertical-align:top;padding:0;margin:0;border:0;">
<pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">2
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">3
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">4
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">5
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">6
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">7
</span></code></pre></td>
<td style="vertical-align:top;padding:0;margin:0;border:0;;width:100%">
<pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>sm java.lang.String
</span></span><span style="display:flex;"><span>java.lang.String &lt;init&gt;<span style="color:#000;font-weight:bold">([</span>BII<span style="color:#000;font-weight:bold">)</span>V
</span></span><span style="display:flex;"><span>java.lang.String &lt;init&gt;<span style="color:#000;font-weight:bold">([</span>BLjava/nio/charset/Charset;<span style="color:#000;font-weight:bold">)</span>V
</span></span><span style="display:flex;"><span>java.lang.String &lt;init&gt;<span style="color:#000;font-weight:bold">([</span>BLjava/lang/String;<span style="color:#000;font-weight:bold">)</span>V
</span></span><span style="display:flex;"><span>java.lang.String &lt;init&gt;<span style="color:#000;font-weight:bold">([</span>BIILjava/nio/charset/Charset;<span style="color:#000;font-weight:bold">)</span>V
</span></span><span style="display:flex;"><span>java.lang.String &lt;init&gt;<span style="color:#000;font-weight:bold">([</span>BIILjava/lang/String;<span style="color:#000;font-weight:bold">)</span>V
</span></span><span style="display:flex;"><span>... ... ... ...
</span></span></code></pre></td></tr></table>
</div>
</div><p>查看String中toString的详细信息</p>
<div class="highlight"><div style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">
<table style="border-spacing:0;padding:0;margin:0;border:0;"><tr><td style="vertical-align:top;padding:0;margin:0;border:0;">
<pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">2
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">3
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">4
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">5
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">6
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">7
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">8
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">9
</span></code></pre></td>
<td style="vertical-align:top;padding:0;margin:0;border:0;;width:100%">
<pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>sm -d java.lang.String toString
</span></span><span style="display:flex;"><span>declaring-class  java.lang.String
</span></span><span style="display:flex;"><span> method-name      toString
</span></span><span style="display:flex;"><span> modifier         public
</span></span><span style="display:flex;"><span> annotation
</span></span><span style="display:flex;"><span> parameters
</span></span><span style="display:flex;"><span> <span style="color:#000;font-weight:bold">return</span>           java.lang.String
</span></span><span style="display:flex;"><span> exceptions
</span></span><span style="display:flex;"><span> classLoaderHash  null
</span></span></code></pre></td></tr></table>
</div>
</div><h2 id="34watch">3.4、watch</h2>
<p>可以监测一个方法的入参和返回值</p>
<p>有些问题线上会出现，本地重现不了，这时这个命令就有用了</p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>class-pattern</td>
<td>类名表达式匹配</td>
</tr>
<tr>
<td>method-pattern</td>
<td>方法名表达式匹配</td>
</tr>
<tr>
<td>express</td>
<td>观察表达式</td>
</tr>
<tr>
<td>condition-express</td>
<td>条件表达式</td>
</tr>
<tr>
<td>[b]</td>
<td>在方法调用之前观察</td>
</tr>
<tr>
<td>[e]</td>
<td>在方法异常之后观察</td>
</tr>
<tr>
<td>[s]</td>
<td>在方法返回之后观察</td>
</tr>
<tr>
<td>[f]</td>
<td>在方法结束之后(正常返回和异常返回)观察，默认选项</td>
</tr>
<tr>
<td>[E]</td>
<td>开启正则表达式匹配，默认为通配符匹配</td>
</tr>
<tr>
<td>[x:]</td>
<td>指定输出结果的属性遍历深度，默认为 1</td>
</tr>
</tbody>
</table>
<p>观察getOrderInfo的出参和返回值，出参就是方法结束后的入参</p>
<div class="highlight"><div style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">
<table style="border-spacing:0;padding:0;margin:0;border:0;"><tr><td style="vertical-align:top;padding:0;margin:0;border:0;">
<pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 1
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 2
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 3
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 4
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 5
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 6
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 7
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 8
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 9
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">10
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">11
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">12
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">13
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">14
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">15
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">16
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">17
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">18
</span></code></pre></td>
<td style="vertical-align:top;padding:0;margin:0;border:0;;width:100%">
<pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>watch cn.test.mobile.controller.order.OrderController getOrderInfo <span style="color:#d14">&#34;{params,returnObj}&#34;</span> -x <span style="color:#099">2</span>
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span>Press Q or Ctrl+C to abort.
</span></span><span style="display:flex;"><span>Affect<span style="color:#000;font-weight:bold">(</span>class-cnt:1 , method-cnt:1<span style="color:#000;font-weight:bold">)</span> cost in <span style="color:#099">456</span> ms.
</span></span><span style="display:flex;"><span><span style="color:#008080">ts</span><span style="color:#000;font-weight:bold">=</span>2019-11-13 15:30:18; <span style="color:#000;font-weight:bold">[</span><span style="color:#008080">cost</span><span style="color:#000;font-weight:bold">=</span>18.48307ms<span style="color:#000;font-weight:bold">]</span> <span style="color:#008080">result</span><span style="color:#000;font-weight:bold">=</span>@ArrayList<span style="color:#000;font-weight:bold">[</span>
</span></span><span style="display:flex;"><span>    @Object<span style="color:#000;font-weight:bold">[][</span>  <span style="color:#998;font-style:italic"># 这个就是出参，params</span>
</span></span><span style="display:flex;"><span>        @RequestFacade<span style="color:#000;font-weight:bold">[</span>org.apache.catalina.connector.RequestFacade@1d81dbd7<span style="color:#000;font-weight:bold">]</span>,
</span></span><span style="display:flex;"><span>        @LinkedHashMap<span style="color:#000;font-weight:bold">[</span><span style="color:#008080">isEmpty</span><span style="color:#000;font-weight:bold">=</span>false;<span style="color:#008080">size</span><span style="color:#000;font-weight:bold">=</span>2<span style="color:#000;font-weight:bold">]</span>, <span style="color:#998;font-style:italic"># 把遍历深度x改为3就可以查看map里的值了</span>
</span></span><span style="display:flex;"><span>    <span style="color:#000;font-weight:bold">]</span>,
</span></span><span style="display:flex;"><span>    @ResponseVo<span style="color:#000;font-weight:bold">[</span> <span style="color:#998;font-style:italic"># 这个就是返回值 returnObj</span>
</span></span><span style="display:flex;"><span>        <span style="color:#008080">log</span><span style="color:#000;font-weight:bold">=</span>@Logger<span style="color:#000;font-weight:bold">[</span>Logger<span style="color:#000;font-weight:bold">[</span>cn.test.db.common.vo.ResponseVo<span style="color:#000;font-weight:bold">]]</span>,
</span></span><span style="display:flex;"><span>        <span style="color:#008080">success</span><span style="color:#000;font-weight:bold">=</span>@Boolean<span style="color:#000;font-weight:bold">[</span>true<span style="color:#000;font-weight:bold">]</span>,
</span></span><span style="display:flex;"><span>        <span style="color:#008080">message</span><span style="color:#000;font-weight:bold">=</span>@String<span style="color:#000;font-weight:bold">[</span>Ok<span style="color:#000;font-weight:bold">]</span>,
</span></span><span style="display:flex;"><span>        <span style="color:#008080">count</span><span style="color:#000;font-weight:bold">=</span>@Integer<span style="color:#000;font-weight:bold">[</span>0<span style="color:#000;font-weight:bold">]</span>,
</span></span><span style="display:flex;"><span>        <span style="color:#008080">code</span><span style="color:#000;font-weight:bold">=</span>@Integer<span style="color:#000;font-weight:bold">[</span>1000<span style="color:#000;font-weight:bold">]</span>,
</span></span><span style="display:flex;"><span>        <span style="color:#008080">data</span><span style="color:#000;font-weight:bold">=</span>@HashMap<span style="color:#000;font-weight:bold">[</span><span style="color:#008080">isEmpty</span><span style="color:#000;font-weight:bold">=</span>false;<span style="color:#008080">size</span><span style="color:#000;font-weight:bold">=</span>1<span style="color:#000;font-weight:bold">]</span>,
</span></span><span style="display:flex;"><span>    <span style="color:#000;font-weight:bold">]</span>,
</span></span><span style="display:flex;"><span><span style="color:#000;font-weight:bold">]</span>
</span></span></code></pre></td></tr></table>
</div>
</div><p>观察getOrderInfo的入参和返回值</p>
<div class="highlight"><div style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">
<table style="border-spacing:0;padding:0;margin:0;border:0;"><tr><td style="vertical-align:top;padding:0;margin:0;border:0;">
<pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 1
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 2
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 3
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 4
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 5
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 6
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 7
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 8
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 9
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">10
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">11
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">12
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">13
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">14
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">15
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">16
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">17
</span></code></pre></td>
<td style="vertical-align:top;padding:0;margin:0;border:0;;width:100%">
<pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>watch cn.test.mobile.controller.order.OrderController getOrderInfo <span style="color:#d14">&#34;{params,returnObj}&#34;</span> -x <span style="color:#099">3</span> -b
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span>Press Q or Ctrl+C to abort.
</span></span><span style="display:flex;"><span>Affect<span style="color:#000;font-weight:bold">(</span>class-cnt:1 , method-cnt:1<span style="color:#000;font-weight:bold">)</span> cost in <span style="color:#099">93</span> ms.
</span></span><span style="display:flex;"><span><span style="color:#008080">ts</span><span style="color:#000;font-weight:bold">=</span>2019-11-13 15:37:38; <span style="color:#000;font-weight:bold">[</span><span style="color:#008080">cost</span><span style="color:#000;font-weight:bold">=</span>0.012479ms<span style="color:#000;font-weight:bold">]</span> <span style="color:#008080">result</span><span style="color:#000;font-weight:bold">=</span>@ArrayList<span style="color:#000;font-weight:bold">[</span>
</span></span><span style="display:flex;"><span>    @Object<span style="color:#000;font-weight:bold">[][</span>
</span></span><span style="display:flex;"><span>        @RequestFacade<span style="color:#000;font-weight:bold">[</span>
</span></span><span style="display:flex;"><span>            <span style="color:#008080">request</span><span style="color:#000;font-weight:bold">=</span>@Request<span style="color:#000;font-weight:bold">[</span>org.apache.catalina.connector.Request@d04e652<span style="color:#000;font-weight:bold">]</span>,
</span></span><span style="display:flex;"><span>            <span style="color:#008080">sm</span><span style="color:#000;font-weight:bold">=</span>@StringManager<span style="color:#000;font-weight:bold">[</span>org.apache.tomcat.util.res.StringManager@7ae7a97b<span style="color:#000;font-weight:bold">]</span>,
</span></span><span style="display:flex;"><span>        <span style="color:#000;font-weight:bold">]</span>,
</span></span><span style="display:flex;"><span>        @LinkedHashMap<span style="color:#000;font-weight:bold">[</span>
</span></span><span style="display:flex;"><span>            @String<span style="color:#000;font-weight:bold">[</span>payNo<span style="color:#000;font-weight:bold">]</span>:@String<span style="color:#000;font-weight:bold">[</span>190911173713755288<span style="color:#000;font-weight:bold">]</span>,
</span></span><span style="display:flex;"><span>            @String<span style="color:#000;font-weight:bold">[</span>catalogId<span style="color:#000;font-weight:bold">]</span>:@String<span style="color:#000;font-weight:bold">[</span>6<span style="color:#000;font-weight:bold">]</span>,
</span></span><span style="display:flex;"><span>        <span style="color:#000;font-weight:bold">]</span>,
</span></span><span style="display:flex;"><span>    <span style="color:#000;font-weight:bold">]</span>,
</span></span><span style="display:flex;"><span>    null,# -b是方法调用之前观察，所以还没有返回值
</span></span><span style="display:flex;"><span><span style="color:#000;font-weight:bold">]</span>
</span></span></code></pre></td></tr></table>
</div>
</div><p>如果需要捕捉异常的话，使用throwExp，如{params,returnObj,throwExp}</p>
<h2 id="35trace">3.5、trace</h2>
<p>输出方法内部调用路径，和路径上每个节点的耗时</p>
<p>可以通过这个命令，查看哪些方法耗性能，从而找出导致性能缺陷的代码，这个耗时还包含了arthas执行的时间哦。</p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>class-pattern</td>
<td>类名表达式匹配</td>
</tr>
<tr>
<td>method-pattern</td>
<td>方法名表达式匹配</td>
</tr>
<tr>
<td>condition-express</td>
<td>条件表达式</td>
</tr>
<tr>
<td>[E]</td>
<td>开启正则表达式匹配，默认为通配符匹配</td>
</tr>
<tr>
<td>[n:]</td>
<td>命令执行次数</td>
</tr>
<tr>
<td>#cost</td>
<td>方法执行耗时</td>
</tr>
</tbody>
</table>
<p>输出getOrderInfo的调用路径</p>
<div class="highlight"><div style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">
<table style="border-spacing:0;padding:0;margin:0;border:0;"><tr><td style="vertical-align:top;padding:0;margin:0;border:0;">
<pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 1
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 2
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 3
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 4
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 5
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 6
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 7
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 8
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 9
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">10
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">11
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">12
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">13
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">14
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">15
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">16
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">17
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">18
</span></code></pre></td>
<td style="vertical-align:top;padding:0;margin:0;border:0;;width:100%">
<pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>trace -j cn.test.mobile.controller.order.OrderController getOrderInfo
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span>Press Q or Ctrl+C to abort.
</span></span><span style="display:flex;"><span>Affect<span style="color:#000;font-weight:bold">(</span>class-cnt:1 , method-cnt:1<span style="color:#000;font-weight:bold">)</span> cost in <span style="color:#099">92</span> ms.
</span></span><span style="display:flex;"><span>---ts<span style="color:#000;font-weight:bold">=</span>2019-11-13 15:46:59;<span style="color:#008080">thread_name</span><span style="color:#000;font-weight:bold">=</span>http-nio-8801-exec-4;<span style="color:#008080">id</span><span style="color:#000;font-weight:bold">=</span>2b;<span style="color:#008080">is_daemon</span><span style="color:#000;font-weight:bold">=</span>true;<span style="color:#008080">priority</span><span style="color:#000;font-weight:bold">=</span>5;<span style="color:#008080">TCCL</span><span style="color:#000;font-weight:bold">=</span>org.springframework.boot.web.embedded.tomcat.TomcatEmbeddedWebappClassLoader@a6c54c3
</span></span><span style="display:flex;"><span>    ---<span style="color:#000;font-weight:bold">[</span>15.509011ms<span style="color:#000;font-weight:bold">]</span> cn.test.mobile.controller.order.OrderController:getOrderInfo<span style="color:#000;font-weight:bold">()</span>
</span></span><span style="display:flex;"><span>        +---<span style="color:#000;font-weight:bold">[</span>0.03584ms<span style="color:#000;font-weight:bold">]</span> cn.test.db.common.vo.ResponseVo:&lt;init&gt;<span style="color:#000;font-weight:bold">()</span> <span style="color:#998;font-style:italic">#472</span>
</span></span><span style="display:flex;"><span>        +---<span style="color:#000;font-weight:bold">[</span>0.00992ms<span style="color:#000;font-weight:bold">]</span> java.util.HashMap:&lt;init&gt;<span style="color:#000;font-weight:bold">()</span> <span style="color:#998;font-style:italic">#473</span>
</span></span><span style="display:flex;"><span>        +---<span style="color:#000;font-weight:bold">[</span>0.02176ms<span style="color:#000;font-weight:bold">]</span> cn.test.mobile.controller.order.OrderController:getUserInfo<span style="color:#000;font-weight:bold">()</span> <span style="color:#998;font-style:italic">#478</span>
</span></span><span style="display:flex;"><span>        +---<span style="color:#000;font-weight:bold">[</span>0.024ms<span style="color:#000;font-weight:bold">]</span> java.util.Map:get<span style="color:#000;font-weight:bold">()</span> <span style="color:#998;font-style:italic">#483</span>
</span></span><span style="display:flex;"><span>        +---<span style="color:#000;font-weight:bold">[</span>0.00896ms<span style="color:#000;font-weight:bold">]</span> java.lang.Object:toString<span style="color:#000;font-weight:bold">()</span> <span style="color:#998;font-style:italic">#483</span>
</span></span><span style="display:flex;"><span>        +---<span style="color:#000;font-weight:bold">[</span>0.00864ms<span style="color:#000;font-weight:bold">]</span> java.lang.Integer:parseInt<span style="color:#000;font-weight:bold">()</span> <span style="color:#998;font-style:italic">#483</span>
</span></span><span style="display:flex;"><span>        +---<span style="color:#000;font-weight:bold">[</span>0.019199ms<span style="color:#000;font-weight:bold">]</span> com.baomidou.mybatisplus.core.conditions.query.QueryWrapper:&lt;init&gt;<span style="color:#000;font-weight:bold">()</span> <span style="color:#998;font-style:italic">#500</span>
</span></span><span style="display:flex;"><span>        +---<span style="color:#000;font-weight:bold">[</span>0.135679ms<span style="color:#000;font-weight:bold">]</span> com.baomidou.mybatisplus.core.conditions.query.QueryWrapper:allEq<span style="color:#000;font-weight:bold">()</span> <span style="color:#998;font-style:italic">#500</span>
</span></span><span style="display:flex;"><span>        +---<span style="color:#000;font-weight:bold">[</span>12.476072ms<span style="color:#000;font-weight:bold">]</span> cn.test.db.service.IOrderMediaService:getOne<span style="color:#000;font-weight:bold">()</span> <span style="color:#998;font-style:italic">#500</span>
</span></span><span style="display:flex;"><span>        +---<span style="color:#000;font-weight:bold">[</span>0.0128ms<span style="color:#000;font-weight:bold">]</span> java.util.HashMap:put<span style="color:#000;font-weight:bold">()</span> <span style="color:#998;font-style:italic">#501</span>
</span></span><span style="display:flex;"><span>        +---<span style="color:#000;font-weight:bold">[</span>0.443517ms<span style="color:#000;font-weight:bold">]</span> cn.test.db.common.vo.ResponseVo:setSuccess<span style="color:#000;font-weight:bold">()</span> <span style="color:#998;font-style:italic">#503</span>
</span></span><span style="display:flex;"><span>        <span style="color:#d14">`</span>---<span style="color:#000;font-weight:bold">[</span>0.03488ms<span style="color:#000;font-weight:bold">]</span> java.util.Map:put<span style="color:#000;font-weight:bold">()</span> <span style="color:#998;font-style:italic">#504</span>
</span></span></code></pre></td></tr></table>
</div>
</div><p>输出getOrderInfo的调用路径，且cost大于10ms，-j是指过滤掉jdk中的方法，可以看到输出少了很多</p>
<div class="highlight"><div style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">
<table style="border-spacing:0;padding:0;margin:0;border:0;"><tr><td style="vertical-align:top;padding:0;margin:0;border:0;">
<pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 1
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 2
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 3
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 4
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 5
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 6
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 7
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 8
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 9
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">10
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">11
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">12
</span></code></pre></td>
<td style="vertical-align:top;padding:0;margin:0;border:0;;width:100%">
<pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>trace -j cn.test.mobile.controller.order.OrderController getOrderInfo <span style="color:#d14">&#39;#cost &gt; 10&#39;</span>
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span>Press Q or Ctrl+C to abort.
</span></span><span style="display:flex;"><span>Affect<span style="color:#000;font-weight:bold">(</span>class-cnt:1 , method-cnt:1<span style="color:#000;font-weight:bold">)</span> cost in <span style="color:#099">96</span> ms.
</span></span><span style="display:flex;"><span>---ts<span style="color:#000;font-weight:bold">=</span>2019-11-13 15:53:42;<span style="color:#008080">thread_name</span><span style="color:#000;font-weight:bold">=</span>http-nio-8801-exec-2;<span style="color:#008080">id</span><span style="color:#000;font-weight:bold">=</span>29;<span style="color:#008080">is_daemon</span><span style="color:#000;font-weight:bold">=</span>true;<span style="color:#008080">priority</span><span style="color:#000;font-weight:bold">=</span>5;<span style="color:#008080">TCCL</span><span style="color:#000;font-weight:bold">=</span>org.springframework.boot.web.embedded.tomcat.TomcatEmbeddedWebappClassLoader@a6c54c3
</span></span><span style="display:flex;"><span>    ---<span style="color:#000;font-weight:bold">[</span>13.803743ms<span style="color:#000;font-weight:bold">]</span> cn.test.mobile.controller.order.OrderController:getOrderInfo<span style="color:#000;font-weight:bold">()</span>
</span></span><span style="display:flex;"><span>        +---<span style="color:#000;font-weight:bold">[</span>0.01312ms<span style="color:#000;font-weight:bold">]</span> cn.test.db.common.vo.ResponseVo:&lt;init&gt;<span style="color:#000;font-weight:bold">()</span> <span style="color:#998;font-style:italic">#472</span>
</span></span><span style="display:flex;"><span>        +---<span style="color:#000;font-weight:bold">[</span>0.01408ms<span style="color:#000;font-weight:bold">]</span> cn.test.mobile.controller.order.OrderController:getUserInfo<span style="color:#000;font-weight:bold">()</span> <span style="color:#998;font-style:italic">#478</span>
</span></span><span style="display:flex;"><span>        +---<span style="color:#000;font-weight:bold">[</span>0.0128ms<span style="color:#000;font-weight:bold">]</span> com.baomidou.mybatisplus.core.conditions.query.QueryWrapper:&lt;init&gt;<span style="color:#000;font-weight:bold">()</span> <span style="color:#998;font-style:italic">#500</span>
</span></span><span style="display:flex;"><span>        +---<span style="color:#000;font-weight:bold">[</span>0.303998ms<span style="color:#000;font-weight:bold">]</span> com.baomidou.mybatisplus.core.conditions.query.QueryWrapper:allEq<span style="color:#000;font-weight:bold">()</span> <span style="color:#998;font-style:italic">#500</span>
</span></span><span style="display:flex;"><span>        +---<span style="color:#000;font-weight:bold">[</span>12.675431ms<span style="color:#000;font-weight:bold">]</span> cn.test.db.service.IOrderMediaService:getOne<span style="color:#000;font-weight:bold">()</span> <span style="color:#998;font-style:italic">#500</span>
</span></span><span style="display:flex;"><span>        <span style="color:#d14">`</span>---<span style="color:#000;font-weight:bold">[</span>0.409917ms<span style="color:#000;font-weight:bold">]</span> cn.test.db.common.vo.ResponseVo:setSuccess<span style="color:#000;font-weight:bold">()</span> <span style="color:#998;font-style:italic">#503</span>
</span></span></code></pre></td></tr></table>
</div>
</div><h2 id="36jobs">3.6、jobs</h2>
<p>执行后台异步任务</p>
<p>线上有些问题是偶然发生的，这时就需要使用异步任务，把信息写入文件。</p>
<p>使用 &amp; 指定命令去后台运行，使用 &gt; 将结果重写到日志文件，以trace为例</p>
<div class="highlight"><div style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">
<table style="border-spacing:0;padding:0;margin:0;border:0;"><tr><td style="vertical-align:top;padding:0;margin:0;border:0;">
<pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1
</span></code></pre></td>
<td style="vertical-align:top;padding:0;margin:0;border:0;;width:100%">
<pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>trace -j cn.test.mobile.controller.order.OrderController getOrderInfo &gt; test.out &amp;
</span></span></code></pre></td></tr></table>
</div>
</div><p>jobs——列出所有job</p>
<div class="highlight"><div style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">
<table style="border-spacing:0;padding:0;margin:0;border:0;"><tr><td style="vertical-align:top;padding:0;margin:0;border:0;">
<pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">2
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">3
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">4
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">5
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">6
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">7
</span></code></pre></td>
<td style="vertical-align:top;padding:0;margin:0;border:0;;width:100%">
<pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span> <span style="color:#0086b3">jobs</span>
</span></span><span style="display:flex;"><span><span style="color:#000;font-weight:bold">[</span>76<span style="color:#000;font-weight:bold">]</span>*  
</span></span><span style="display:flex;"><span>       Running           trace -j cn.test.mobile.controller.order.OrderController getOrderInfo &gt;&gt; test.out &amp;
</span></span><span style="display:flex;"><span>       execution count : <span style="color:#099">0</span>
</span></span><span style="display:flex;"><span>       start <span style="color:#0086b3">time</span>      : Wed Nov <span style="color:#099">13</span> 16:13:23 CST <span style="color:#099">2019</span>
</span></span><span style="display:flex;"><span>       timeout date    : Thu Nov <span style="color:#099">14</span> 16:13:23 CST <span style="color:#099">2019</span>
</span></span><span style="display:flex;"><span>       session         : f4fba846-e90b-4234-959e-e78ad0a5db8c <span style="color:#000;font-weight:bold">(</span>current<span style="color:#000;font-weight:bold">)</span>
</span></span></code></pre></td></tr></table>
</div>
</div><p>job id是76, * 表示此job是当前session创建，状态是Running，execution count是执行次数，timeout date是超时时间</p>
<p>异步执行时间，默认为1天，如果要修改，使用options命令,</p>
<div class="highlight"><div style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">
<table style="border-spacing:0;padding:0;margin:0;border:0;"><tr><td style="vertical-align:top;padding:0;margin:0;border:0;">
<pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1
</span></code></pre></td>
<td style="vertical-align:top;padding:0;margin:0;border:0;;width:100%">
<pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>options job-timeout 2d
</span></span></code></pre></td></tr></table>
</div>
</div><p>options可选参数 1d, 2h, 3m, 25s，分别代表天、小时、分、秒</p>
<p>kill——强制终止任务</p>
<div class="highlight"><div style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">
<table style="border-spacing:0;padding:0;margin:0;border:0;"><tr><td style="vertical-align:top;padding:0;margin:0;border:0;">
<pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">2
</span></code></pre></td>
<td style="vertical-align:top;padding:0;margin:0;border:0;;width:100%">
<pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span><span style="color:#0086b3">kill</span> <span style="color:#099">76</span>
</span></span><span style="display:flex;"><span><span style="color:#0086b3">kill</span> job <span style="color:#099">76</span> success
</span></span></code></pre></td></tr></table>
</div>
</div><p>最多同时支持8个命令使用重定向将结果写日志</p>
<p>请勿同时开启过多的后台异步命令，以免对目标JVM性能造成影响</p>
<h2 id="37logger">3.7、logger</h2>
<p>查看logger信息，更新logger level</p>
<p>查看</p>
<div class="highlight"><div style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">
<table style="border-spacing:0;padding:0;margin:0;border:0;"><tr><td style="vertical-align:top;padding:0;margin:0;border:0;">
<pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">2
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">3
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">4
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">5
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">6
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">7
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">8
</span></code></pre></td>
<td style="vertical-align:top;padding:0;margin:0;border:0;;width:100%">
<pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>logger
</span></span><span style="display:flex;"><span> name                ROOT
</span></span><span style="display:flex;"><span> class               ch.qos.logback.classic.Logger
</span></span><span style="display:flex;"><span> classLoader         sun.misc.Launcher<span style="color:#008080">$AppClassLoader</span>@18b4aac2
</span></span><span style="display:flex;"><span> classLoaderHash     18b4aac2 <span style="color:#998;font-style:italic">#改日志级别时要用到它</span>
</span></span><span style="display:flex;"><span> level               INFO
</span></span><span style="display:flex;"><span> effectiveLevel      INFO
</span></span><span style="display:flex;"><span> ... ... ... ...
</span></span></code></pre></td></tr></table>
</div>
</div><p>更新日志级别</p>
<div class="highlight"><div style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">
<table style="border-spacing:0;padding:0;margin:0;border:0;"><tr><td style="vertical-align:top;padding:0;margin:0;border:0;">
<pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">2
</span></code></pre></td>
<td style="vertical-align:top;padding:0;margin:0;border:0;;width:100%">
<pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>logger --name ROOT --level debug
</span></span><span style="display:flex;"><span>update logger level success.
</span></span></code></pre></td></tr></table>
</div>
</div><p>如果执行这个命令时出错：update logger level fail.</p>
<p>指定classLoaderHash重试一下试试</p>
<div class="highlight"><div style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">
<table style="border-spacing:0;padding:0;margin:0;border:0;"><tr><td style="vertical-align:top;padding:0;margin:0;border:0;">
<pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">2
</span></code></pre></td>
<td style="vertical-align:top;padding:0;margin:0;border:0;;width:100%">
<pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>logger -c 18b4aac2 --name ROOT --level debug
</span></span><span style="display:flex;"><span>update logger level success.
</span></span></code></pre></td></tr></table>
</div>
</div><h2 id="38dashboard">3.8、dashboard</h2>
<p>查看当前系统的实时数据面板</p>
<p>这个命令可以全局的查看jvm运行状态，比如内存和cpu占用情况</p>
<div class="highlight"><div style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">
<table style="border-spacing:0;padding:0;margin:0;border:0;"><tr><td style="vertical-align:top;padding:0;margin:0;border:0;">
<pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 1
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 2
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 3
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 4
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 5
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 6
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 7
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 8
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 9
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">10
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">11
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">12
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">13
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">14
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">15
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">16
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">17
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">18
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">19
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">20
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">21
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">22
</span></code></pre></td>
<td style="vertical-align:top;padding:0;margin:0;border:0;;width:100%">
<pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>dashboard
</span></span><span style="display:flex;"><span>ID        NAME                          GROUP               PRIORITY STATE     %CPU      TIME      INTERRUPT DAEMON
</span></span><span style="display:flex;"><span><span style="color:#099">17</span>        Abandoned connection cleanup  main                <span style="color:#099">5</span>        TIMED_WAI <span style="color:#099">0</span>         0:0       <span style="color:#0086b3">false</span>     <span style="color:#0086b3">true</span>
</span></span><span style="display:flex;"><span><span style="color:#099">1009</span>      AsyncAppender-Worker-arthas-c system              <span style="color:#099">5</span>        WAITING   <span style="color:#099">0</span>         0:0       <span style="color:#0086b3">false</span>     <span style="color:#0086b3">true</span>
</span></span><span style="display:flex;"><span><span style="color:#099">5</span>         Attach Listener               system              <span style="color:#099">5</span>        RUNNABLE  <span style="color:#099">0</span>         0:0       <span style="color:#0086b3">false</span>     <span style="color:#0086b3">true</span>
</span></span><span style="display:flex;"><span><span style="color:#099">23</span>        ContainerBackgroundProcessor<span style="color:#000;font-weight:bold">[</span> main                <span style="color:#099">5</span>        TIMED_WAI <span style="color:#099">0</span>         0:0       <span style="color:#0086b3">false</span>     <span style="color:#0086b3">true</span>
</span></span><span style="display:flex;"><span><span style="color:#099">55</span>        DestroyJavaVM                 main                <span style="color:#099">5</span>        RUNNABLE  <span style="color:#099">0</span>         0:11      <span style="color:#0086b3">false</span>     <span style="color:#0086b3">false</span>
</span></span><span style="display:flex;"><span><span style="color:#099">3</span>         Finalizer                     system              <span style="color:#099">8</span>        WAITING   <span style="color:#099">0</span>         0:0       <span style="color:#0086b3">false</span>     <span style="color:#0086b3">true</span>
</span></span><span style="display:flex;"><span><span style="color:#099">18</span>        HikariPool-1 housekeeper      main                <span style="color:#099">5</span>        TIMED_WAI <span style="color:#099">0</span>         0:0       <span style="color:#0086b3">false</span>     <span style="color:#0086b3">true</span>
</span></span><span style="display:flex;"><span><span style="color:#099">39</span>        NioBlockingSelector.BlockPoll main                <span style="color:#099">5</span>        RUNNABLE  <span style="color:#099">0</span>         0:0       <span style="color:#0086b3">false</span>     <span style="color:#0086b3">true</span>
</span></span><span style="display:flex;"><span><span style="color:#099">2</span>         Reference Handler             system              <span style="color:#099">10</span>       WAITING   <span style="color:#099">0</span>         0:0       <span style="color:#0086b3">false</span>     <span style="color:#0086b3">true</span>
</span></span><span style="display:flex;"><span><span style="color:#099">4</span>         Signal Dispatcher             system              <span style="color:#099">9</span>        RUNNABLE  <span style="color:#099">0</span>         0:0       <span style="color:#0086b3">false</span>     <span style="color:#0086b3">true</span>
</span></span><span style="display:flex;"><span><span style="color:#099">69</span>        System Clock                  main                <span style="color:#099">5</span>        TIMED_WAI <span style="color:#099">0</span>         0:34      <span style="color:#0086b3">false</span>     <span style="color:#0086b3">true</span>
</span></span><span style="display:flex;"><span><span style="color:#099">25</span>        Thread-2                      main                <span style="color:#099">5</span>        TIMED_WAI <span style="color:#099">0</span>         0:0       <span style="color:#0086b3">false</span>     <span style="color:#0086b3">false</span>
</span></span><span style="display:flex;"><span><span style="color:#099">37</span>        Timer-0                       main                <span style="color:#099">5</span>        TIMED_WAI <span style="color:#099">0</span>         0:0       <span style="color:#0086b3">false</span>     <span style="color:#0086b3">true</span>
</span></span><span style="display:flex;"><span>Memory                    used    total    max     usage    GC
</span></span><span style="display:flex;"><span>heap                      216M    415M     3614M   5.99%    gc.ps_scavenge.count          <span style="color:#099">96</span>
</span></span><span style="display:flex;"><span>ps_eden_space             36M     78M      1276M   2.90%    gc.ps_scavenge.time<span style="color:#000;font-weight:bold">(</span>ms<span style="color:#000;font-weight:bold">)</span>       <span style="color:#099">3054</span>
</span></span><span style="display:flex;"><span>ps_survivor_space         17M     38M      38M     46.53%   gc.ps_marksweep.count         <span style="color:#099">4</span>
</span></span><span style="display:flex;"><span>ps_old_gen                161M    298M     2711M   5.97%    gc.ps_marksweep.time<span style="color:#000;font-weight:bold">(</span>ms<span style="color:#000;font-weight:bold">)</span>      <span style="color:#099">804</span>
</span></span><span style="display:flex;"><span>nonheap                   175M    180M     -1      97.09%
</span></span><span style="display:flex;"><span>code_cache                35M     35M      240M    14.85%
</span></span></code></pre></td></tr></table>
</div>
</div><p>ID: Java级别的线程ID，注意这个ID不能跟jstack中的nativeID一一对应</p>
<p>我们可以通过 thread id 查看线程的堆栈 信息</p>
<div class="highlight"><div style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">
<table style="border-spacing:0;padding:0;margin:0;border:0;"><tr><td style="vertical-align:top;padding:0;margin:0;border:0;">
<pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">2
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">3
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">4
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">5
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">6
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">7
</span></code></pre></td>
<td style="vertical-align:top;padding:0;margin:0;border:0;;width:100%">
<pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>thread <span style="color:#099">2</span>
</span></span><span style="display:flex;"><span><span style="color:#d14">&#34;Reference Handler&#34;</span> <span style="color:#008080">Id</span><span style="color:#000;font-weight:bold">=</span><span style="color:#099">2</span> WAITING on java.lang.ref.Reference<span style="color:#008080">$Lock</span>@66ad4272
</span></span><span style="display:flex;"><span>    at java.lang.Object.wait<span style="color:#000;font-weight:bold">(</span>Native Method<span style="color:#000;font-weight:bold">)</span>
</span></span><span style="display:flex;"><span>    -  waiting on java.lang.ref.Reference<span style="color:#008080">$Lock</span>@66ad4272
</span></span><span style="display:flex;"><span>    at java.lang.Object.wait<span style="color:#000;font-weight:bold">(</span>Object.java:502<span style="color:#000;font-weight:bold">)</span>
</span></span><span style="display:flex;"><span>    at java.lang.ref.Reference.tryHandlePending<span style="color:#000;font-weight:bold">(</span>Reference.java:191<span style="color:#000;font-weight:bold">)</span>
</span></span><span style="display:flex;"><span>    at java.lang.ref.Reference<span style="color:#008080">$ReferenceHandler</span>.run<span style="color:#000;font-weight:bold">(</span>Reference.java:153<span style="color:#000;font-weight:bold">)</span>
</span></span></code></pre></td></tr></table>
</div>
</div><table>
<thead>
<tr>
<th>参数</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>NAME</td>
<td>线程名</td>
</tr>
<tr>
<td>GROUP</td>
<td>线程组名</td>
</tr>
<tr>
<td>PRIORITY</td>
<td>线程优先级, 1~10之间的数字，越大表示优先级越高</td>
</tr>
<tr>
<td>STATE</td>
<td>线程的状态</td>
</tr>
<tr>
<td>CPU%</td>
<td>线程消耗的cpu占比，采样100ms，将所有线程在这100ms内的cpu使用量求和，再算出每个线程的cpu使用占比。</td>
</tr>
<tr>
<td>TIME</td>
<td>线程运行总时间，数据格式为分：秒</td>
</tr>
<tr>
<td>INTERRUPTED</td>
<td>线程当前的中断位状态</td>
</tr>
<tr>
<td>DAEMON</td>
<td>是否是daemon线程</td>
</tr>
</tbody>
</table>
<h2 id="39redefine">3.9、redefine</h2>
<p>redefine jvm已加载的类 ，可以在不重启项目的情况下，热更新类。</p>
<p>这个功能真的很强大，但是命令不一定会成功</p>
<p>下面我们来模拟：假设我想修改OrderController里的某几行代码，然后热更新至jvm：</p>
<p>a. 反编译OrderController，默认情况下，反编译结果里会带有ClassLoader信息，通过&ndash;source-only选项，可以只打印源代码。方便和mc/redefine命令结合使用</p>
<div class="highlight"><div style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">
<table style="border-spacing:0;padding:0;margin:0;border:0;"><tr><td style="vertical-align:top;padding:0;margin:0;border:0;">
<pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1
</span></code></pre></td>
<td style="vertical-align:top;padding:0;margin:0;border:0;;width:100%">
<pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>jad --source-only cn.test.mobile.controller.order.OrderController &gt; OrderController.java
</span></span></code></pre></td></tr></table>
</div>
</div><p>生成的OrderController.java在哪呢，执行pwd就知道在哪个目录了</p>
<p>b. 查找加载OrderController的ClassLoader</p>
<div class="highlight"><div style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">
<table style="border-spacing:0;padding:0;margin:0;border:0;"><tr><td style="vertical-align:top;padding:0;margin:0;border:0;">
<pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">2
</span></code></pre></td>
<td style="vertical-align:top;padding:0;margin:0;border:0;;width:100%">
<pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>sc -d cn.test.mobile.controller.order.OrderController | grep classLoaderHash
</span></span><span style="display:flex;"><span>classLoaderHash   18b4aac2
</span></span></code></pre></td></tr></table>
</div>
</div><p>c. 修改保存好OrderController.java之后，使用mc(Memory Compiler)命令来编译成字节码，并且通过-c参数指定ClassLoader</p>
<div class="highlight"><div style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">
<table style="border-spacing:0;padding:0;margin:0;border:0;"><tr><td style="vertical-align:top;padding:0;margin:0;border:0;">
<pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1
</span></code></pre></td>
<td style="vertical-align:top;padding:0;margin:0;border:0;;width:100%">
<pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>mc -c 18b4aac2 OrderController.java -d ./
</span></span></code></pre></td></tr></table>
</div>
</div><p>d. 热更新刚才修改后的代码</p>
<div class="highlight"><div style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">
<table style="border-spacing:0;padding:0;margin:0;border:0;"><tr><td style="vertical-align:top;padding:0;margin:0;border:0;">
<pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">2
</span></code></pre></td>
<td style="vertical-align:top;padding:0;margin:0;border:0;;width:100%">
<pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>redefine -c 18b4aac2 OrderController.class
</span></span><span style="display:flex;"><span>redefine success, size: <span style="color:#099">1</span>
</span></span></code></pre></td></tr></table>
</div>
</div><p>然后代码就更新成功了。</p>
<p>redefine我参考了这篇文档<a href="https://github.com/alibaba/arthas/issues/537">https://github.com/alibaba/arthas/issues/537</a></p>
<p>更多高级的功能请移步Arthas官网文档<a href="https://alibaba.github.io/arthas/quick-start.html">https://alibaba.github.io/arthas/quick-start.html</a></p>
<h2 id="310其他">3.10、其他</h2>
<p>如果java -jar选择启动某个应用的时候，报下面的错</p>
<div class="highlight"><div style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">
<table style="border-spacing:0;padding:0;margin:0;border:0;"><tr><td style="vertical-align:top;padding:0;margin:0;border:0;">
<pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 1
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 2
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 3
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 4
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 5
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 6
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 7
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 8
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 9
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">10
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">11
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">12
</span><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">13
</span></code></pre></td>
<td style="vertical-align:top;padding:0;margin:0;border:0;;width:100%">
<pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>java -jar arthas-boot.jar
</span></span><span style="display:flex;"><span><span style="color:#000;font-weight:bold">[</span>INFO<span style="color:#000;font-weight:bold">]</span> arthas-boot version: 3.1.4
</span></span><span style="display:flex;"><span><span style="color:#000;font-weight:bold">[</span>INFO<span style="color:#000;font-weight:bold">]</span> Process <span style="color:#099">11544</span> already using port <span style="color:#099">3658</span>
</span></span><span style="display:flex;"><span><span style="color:#000;font-weight:bold">[</span>INFO<span style="color:#000;font-weight:bold">]</span> Process <span style="color:#099">11544</span> already using port <span style="color:#099">8563</span>
</span></span><span style="display:flex;"><span><span style="color:#000;font-weight:bold">[</span>INFO<span style="color:#000;font-weight:bold">]</span> Found existing java process, please choose one and hit RETURN.
</span></span><span style="display:flex;"><span>* <span style="color:#000;font-weight:bold">[</span>1<span style="color:#000;font-weight:bold">]</span>: <span style="color:#099">11544</span>
</span></span><span style="display:flex;"><span>  <span style="color:#000;font-weight:bold">[</span>2<span style="color:#000;font-weight:bold">]</span>: <span style="color:#099">119504</span> cn.test.MobileApplication
</span></span><span style="display:flex;"><span>  <span style="color:#000;font-weight:bold">[</span>3<span style="color:#000;font-weight:bold">]</span>: <span style="color:#099">136340</span> org.jetbrains.jps.cmdline.Launcher
</span></span><span style="display:flex;"><span>  <span style="color:#000;font-weight:bold">[</span>4<span style="color:#000;font-weight:bold">]</span>: <span style="color:#099">3068</span>
</span></span><span style="display:flex;"><span>2	<span style="color:#998;font-style:italic">#选择第2个启动</span>
</span></span><span style="display:flex;"><span><span style="color:#000;font-weight:bold">[</span>ERROR<span style="color:#000;font-weight:bold">]</span> Target process <span style="color:#099">119504</span> is not the process using port 3658, you will connect to an unexpected process.
</span></span><span style="display:flex;"><span><span style="color:#000;font-weight:bold">[</span>ERROR<span style="color:#000;font-weight:bold">]</span> 1. Try to restart arthas-boot, <span style="color:#000;font-weight:bold">select</span> process 11544, shutdown it first with running the <span style="color:#d14">&#39;shutdown&#39;</span> command.
</span></span><span style="display:flex;"><span><span style="color:#000;font-weight:bold">[</span>ERROR<span style="color:#000;font-weight:bold">]</span> 2. Or try to use different telnet port, <span style="color:#000;font-weight:bold">for</span> example: java -jar arthas-boot.jar --telnet-port <span style="color:#099">9998</span> --http-port -1
</span></span></code></pre></td></tr></table>
</div>
</div><p>注意提示[ERROR] 1，只需要进入11544这个应用，然后执行shutdown关闭这个应用就可以启动了</p>
<p>转至: <a href="https://juejin.cn/post/7114540497187635208">https://juejin.cn/post/7114540497187635208</a></p>

        </div>

        
<div class="post-archive">
    <ul class="post-copyright">
        <li><strong>原文作者：</strong><a rel="author" href="https://anttu.gitee.io/">Anttu</a></li>
        <li style="word-break:break-all"><strong>原文链接：</strong><a href="https://anttu.gitee.io/post/2022-08-11-arthas/">https://anttu.gitee.io/post/2022-08-11-arthas/</a></li>
        <li><strong>版权声明：</strong>本作品采用<a rel="license" href="https://creativecommons.org/licenses/by-nc-nd/4.0/">知识共享署名-非商业性使用-禁止演绎 4.0 国际许可协议</a>进行许可，非商业转载请注明出处（作者，原文链接），商业转载请联系作者获得授权。</li>
    </ul>
</div>
<br/>



        

<div class="post-archive">
    <h2>See Also</h2>
    <ul class="listing">
        
        <li><a href="/post/2022-07-11-id_discuss/">几种id浅谈</a></li>
        
        <li><a href="/post/2022-06-17-python_req/">python打包-只依赖自己项目引用的module</a></li>
        
        <li><a href="/post/2022-05-25-pen_testing/">渗透测试的部分资料</a></li>
        
        <li><a href="/post/2022-04-22-shell_question/">转载-shell 13问</a></li>
        
        <li><a href="/post/2022-04-02-spring_cloud_gateway/">spring cloud gateway的一些细节注意</a></li>
        
    </ul>
</div>


        <div class="post-meta meta-tags">
            
            没有标签
            
        </div>
    </article>
    
    

    
    
    <div class="post bg-white">
      <script src="https://utteranc.es/client.js"
            repo= "anTtutu/anTtutu.github.io"
            issue-term="pathname"
            theme="github-light"
            crossorigin="anonymous"
            async>
      </script>
    </div>
    
    
    
</div>

                    <footer id="footer">
    <div>
        &copy; 2025 <a href="https://anttu.gitee.io/">Anttu&#39;s Blog By Anttu</a>
        
    </div>
    <br />
    <div>
        <div class="github-badge">
            <a href="https://gohugo.io/" target="_black" rel="nofollow"><span class="badge-subject">Powered by</span><span class="badge-value bg-blue">Hugo</span></a>
        </div>
        
        <div class="github-badge">
            <a href="https://github.com/flysnow-org/maupassant-hugo" target="_black"><span class="badge-subject">Theme</span><span class="badge-value bg-yellowgreen">Maupassant</span></a>
        </div>
    </div>
</footer>


    
    
    <script type="text/javascript">
        window.MathJax = {
            tex2jax: {
                inlineMath: [['$', '$']],
                processEscapes: true
                }
            };
    </script>
    <script src='//cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML' async></script>

<a id="rocket" href="#top"></a>
<script type="text/javascript" src='/js/totop.js?v=0.0.0' async=""></script>
<style type="text/css">
div.highlight {
    position: relative;
    margin: 1em 0px;
}

.copy-code {
    display: none;
    position: absolute;
    top: 4px;
    right: 4px;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(78, 78, 78, 0.8);
    border-radius: var(--radius);
    padding: 0 5px;
    font: inherit;
    user-select: none;
    cursor: pointer;
    border: 0;
    --radius: 8px;
}

div.highlight:hover .copy-code,pre:hover .copy-code {
    display: block;
}

</style>
<script>
    document.querySelectorAll('pre > code').forEach((codeblock) => {
        const container = codeblock.parentNode.parentNode;

        const copybutton = document.createElement('button');
        copybutton.classList.add('copy-code');
        copybutton.innerHTML = 'copy';

        function copyingDone() {
            copybutton.innerHTML = 'copied!';
            setTimeout(() => {
                copybutton.innerHTML = 'copy';
            }, 2000);
        }

        copybutton.addEventListener('click', (cb) => {
            if ('clipboard' in navigator) {
                navigator.clipboard.writeText(codeblock.textContent);
                copyingDone();
                return;
            }

            const range = document.createRange();
            range.selectNodeContents(codeblock);
            const selection = window.getSelection();
            selection.removeAllRanges();
            selection.addRange(range);
            try {
                document.execCommand('copy');
                copyingDone();
            } catch (e) { };
            selection.removeRange(range);
        });

        if (container.classList.contains("highlight")) {
            container.appendChild(copybutton);
        } else if (container.parentNode.firstChild == container) {
            
        } else if (codeblock.parentNode.parentNode.parentNode.parentNode.parentNode.nodeName == "TABLE") {
            
            codeblock.parentNode.parentNode.parentNode.parentNode.parentNode.appendChild(copybutton);
        } else {
            
            codeblock.parentNode.appendChild(copybutton);
        }
    });
</script>


    <script type="text/javascript" src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js" async></script>




    <script src='/js/asciinema-player.js'></script>

                </div>

                <div id="secondary">
    <section class="widget">
        <form id="search" action='https://anttu.gitee.io/search' method="get" accept-charset="utf-8" target="_blank" _lpchecked="1">
      
      <input type="text" name="q" maxlength="20" placeholder="Search">
      <input type="hidden" name="sitesearch" value="https://anttu.gitee.io/">
      <button type="submit" class="submit icon-search"></button>
</form>
    </section>
    
    <section class="widget">
        <h3 class="widget-title">最近文章</h3>
<ul class="widget-list">
    
    <li>
        <a href="https://anttu.gitee.io/post/2025-02-13-mvnd/" title="mvnd结合idea使用" target="_blank">mvnd结合idea使用</a>
    </li>
    
    <li>
        <a href="https://anttu.gitee.io/post/2024-04-15-postgresql/" title="postgresql数据库常用记录" target="_blank">postgresql数据库常用记录</a>
    </li>
    
    <li>
        <a href="https://anttu.gitee.io/post/2023-06-16-miner_virus_5/" title="挖矿病毒5-私有云机房挖矿病毒定位" target="_blank">挖矿病毒5-私有云机房挖矿病毒定位</a>
    </li>
    
    <li>
        <a href="https://anttu.gitee.io/post/2022-12-26-covid-19/" title="羊了" target="_blank">羊了</a>
    </li>
    
    <li>
        <a href="https://anttu.gitee.io/post/2022-12-19-git_delete_history/" title="git删除历史提交记录" target="_blank">git删除历史提交记录</a>
    </li>
    
    <li>
        <a href="https://anttu.gitee.io/post/2022-11-28-python_muilt_version/" title="python多版本管理工具" target="_blank">python多版本管理工具</a>
    </li>
    
    <li>
        <a href="https://anttu.gitee.io/post/2022-11-22-springboot_start_failed/" title="springboot常见兼容性错误" target="_blank">springboot常见兼容性错误</a>
    </li>
    
    <li>
        <a href="https://anttu.gitee.io/post/2022-11-14-docker_port/" title="docker修改运行的容器端口" target="_blank">docker修改运行的容器端口</a>
    </li>
    
    <li>
        <a href="https://anttu.gitee.io/post/2022-11-10-go_muilt_version/" title="go多版本管理工具" target="_blank">go多版本管理工具</a>
    </li>
    
    <li>
        <a href="https://anttu.gitee.io/post/2022-10-27-jenkins_reset/" title="jenkins的admin密码忘记了如何重置" target="_blank">jenkins的admin密码忘记了如何重置</a>
    </li>
    
</ul>
    </section>

    

    <section class="widget">
        <h3 class="widget-title"><a href='/categories/'>分类</a></h3>
<ul class="widget-list">
    
    <li><a href="https://anttu.gitee.io/categories/about/">about (1)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/android/">android (2)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/app/">app (1)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/aria2/">aria2 (1)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/arm64/">arm64 (1)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/arthas/">arthas (1)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/awr/">awr (1)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/backend_execute/">backend_execute (1)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/backup/">backup (1)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/blog/">blog (3)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/bug/">bug (1)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/build/">build (1)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/cache/">cache (1)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/caffeine/">caffeine (1)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/captcha/">captcha (1)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/check/">check (5)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/clean/">clean (1)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/cli/">cli (1)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/cluster/">cluster (4)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/covid-19/">covid-19 (1)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/cve/">cve (1)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/cygwin/">cygwin (1)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/dataguard/">dataguard (1)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/db/">db (1)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/deepfacelab/">deepfacelab (1)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/devops/">devops (1)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/docker/">docker (5)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/dockerfile/">dockerfile (1)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/dos/">dos (1)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/dump/">dump (1)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/eclipse/">eclipse (2)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/explain/">explain (1)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/faker/">faker (1)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/gcc/">gcc (1)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/git/">git (2)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/gitment/">gitment (1)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/gitpages/">gitpages (2)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/go/">go (5)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/h2/">h2 (1)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/h5/">h5 (1)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/ha/">ha (4)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/http/">http (1)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/hugo/">hugo (1)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/id/">id (1)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/idea/">idea (1)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/java/">java (24)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/jekyll/">jekyll (2)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/jenkins/">jenkins (1)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/jrebel/">jrebel (1)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/js/">js (1)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/jsr/">jsr (1)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/jvm/">jvm (1)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/kafka/">kafka (1)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/kali/">kali (1)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/kenlm/">kenlm (1)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/linux/">linux (22)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/log/">log (1)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/log4j/">log4j (2)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/lombok/">lombok (1)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/mac/">mac (5)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/matplotlib/">matplotlib (1)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/maven/">maven (3)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/mine/">mine (5)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/mongodb/">mongodb (1)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/mvnd/">mvnd (1)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/mysql/">mysql (5)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/nginx/">nginx (1)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/nmap/">nmap (1)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/oom/">oom (1)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/oracle/">oracle (3)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/orangePi/">orangePi (1)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/package/">package (1)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/pandas/">pandas (1)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/pg/">pg (1)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/port/">port (1)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/postgresql/">postgresql (1)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/python/">python (8)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/rec/">rec (1)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/redis/">redis (3)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/regexp/">regexp (1)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/safe/">safe (5)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/sdk/">sdk (3)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/shell/">shell (3)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/split/">split (1)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/springboot/">springboot (4)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/springcloud/">springcloud (1)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/sqlmap/">sqlmap (1)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/ssd/">ssd (1)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/tcp/">tcp (1)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/termux/">termux (2)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/test/">test (1)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/testing/">testing (1)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/union_id/">union_id (1)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/vcs/">vcs (7)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/virus/">virus (5)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/vxvm/">vxvm (3)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/win10/">win10 (6)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/xrebel/">xrebel (1)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/ynote/">ynote (1)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/zk/">zk (1)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/zookeeper/">zookeeper (1)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/%E5%89%8D%E7%AB%AF/">前端 (1)</a></li>
    
    <li><a href="https://anttu.gitee.io/categories/%E5%AE%B9%E7%81%BE/">容灾 (1)</a></li>
    
</ul>
    </section>

    <section class="widget">
        <h3 class="widget-title"><a href='/tags/'>标签</a></h3>
<div class="tagcloud">
    
    <a href="https://anttu.gitee.io/tags/about/">about</a>
    
    <a href="https://anttu.gitee.io/tags/android/">android</a>
    
    <a href="https://anttu.gitee.io/tags/app/">app</a>
    
    <a href="https://anttu.gitee.io/tags/aria2/">aria2</a>
    
    <a href="https://anttu.gitee.io/tags/arm64/">arm64</a>
    
    <a href="https://anttu.gitee.io/tags/awr/">awr</a>
    
    <a href="https://anttu.gitee.io/tags/backup/">backup</a>
    
    <a href="https://anttu.gitee.io/tags/blog/">blog</a>
    
    <a href="https://anttu.gitee.io/tags/bug/">bug</a>
    
    <a href="https://anttu.gitee.io/tags/build/">build</a>
    
    <a href="https://anttu.gitee.io/tags/captcha/">captcha</a>
    
    <a href="https://anttu.gitee.io/tags/check/">check</a>
    
    <a href="https://anttu.gitee.io/tags/cluster/">cluster</a>
    
    <a href="https://anttu.gitee.io/tags/cygwin/">cygwin</a>
    
    <a href="https://anttu.gitee.io/tags/dataguard/">dataguard</a>
    
    <a href="https://anttu.gitee.io/tags/deepfacelab/">deepfacelab</a>
    
    <a href="https://anttu.gitee.io/tags/dos/">dos</a>
    
    <a href="https://anttu.gitee.io/tags/eclipse/">eclipse</a>
    
    <a href="https://anttu.gitee.io/tags/explain/">explain</a>
    
    <a href="https://anttu.gitee.io/tags/gcc/">gcc</a>
    
    <a href="https://anttu.gitee.io/tags/gitment/">gitment</a>
    
    <a href="https://anttu.gitee.io/tags/gitpages/">gitpages</a>
    
    <a href="https://anttu.gitee.io/tags/go/">go</a>
    
    <a href="https://anttu.gitee.io/tags/h2/">h2</a>
    
    <a href="https://anttu.gitee.io/tags/h5/">h5</a>
    
    <a href="https://anttu.gitee.io/tags/ha/">ha</a>
    
    <a href="https://anttu.gitee.io/tags/http/">http</a>
    
    <a href="https://anttu.gitee.io/tags/hugo/">hugo</a>
    
    <a href="https://anttu.gitee.io/tags/java/">java</a>
    
    <a href="https://anttu.gitee.io/tags/jekyll/">jekyll</a>
    
    <a href="https://anttu.gitee.io/tags/jrebel/">jrebel</a>
    
    <a href="https://anttu.gitee.io/tags/js/">js</a>
    
    <a href="https://anttu.gitee.io/tags/jsr/">jsr</a>
    
    <a href="https://anttu.gitee.io/tags/kafka/">kafka</a>
    
    <a href="https://anttu.gitee.io/tags/kali/">kali</a>
    
    <a href="https://anttu.gitee.io/tags/kenlm/">kenlm</a>
    
    <a href="https://anttu.gitee.io/tags/linux/">linux</a>
    
    <a href="https://anttu.gitee.io/tags/log4j/">log4j</a>
    
    <a href="https://anttu.gitee.io/tags/mac/">mac</a>
    
    <a href="https://anttu.gitee.io/tags/mine/">mine</a>
    
    <a href="https://anttu.gitee.io/tags/mongodb/">mongodb</a>
    
    <a href="https://anttu.gitee.io/tags/mysql/">mysql</a>
    
    <a href="https://anttu.gitee.io/tags/nginx/">nginx</a>
    
    <a href="https://anttu.gitee.io/tags/oom/">oom</a>
    
    <a href="https://anttu.gitee.io/tags/oracle/">oracle</a>
    
    <a href="https://anttu.gitee.io/tags/orangePi/">orangePi</a>
    
    <a href="https://anttu.gitee.io/tags/python/">python</a>
    
    <a href="https://anttu.gitee.io/tags/rec/">rec</a>
    
    <a href="https://anttu.gitee.io/tags/redis/">redis</a>
    
    <a href="https://anttu.gitee.io/tags/safe/">safe</a>
    
    <a href="https://anttu.gitee.io/tags/shell/">shell</a>
    
    <a href="https://anttu.gitee.io/tags/springboot/">springboot</a>
    
    <a href="https://anttu.gitee.io/tags/sqlmap/">sqlmap</a>
    
    <a href="https://anttu.gitee.io/tags/ssd/">ssd</a>
    
    <a href="https://anttu.gitee.io/tags/tcp/">tcp</a>
    
    <a href="https://anttu.gitee.io/tags/termux/">termux</a>
    
    <a href="https://anttu.gitee.io/tags/union_id/">union_id</a>
    
    <a href="https://anttu.gitee.io/tags/vcs/">vcs</a>
    
    <a href="https://anttu.gitee.io/tags/virus/">virus</a>
    
    <a href="https://anttu.gitee.io/tags/vxvm/">vxvm</a>
    
    <a href="https://anttu.gitee.io/tags/win10/">win10</a>
    
    <a href="https://anttu.gitee.io/tags/xrebel/">xrebel</a>
    
    <a href="https://anttu.gitee.io/tags/ynote/">ynote</a>
    
    <a href="https://anttu.gitee.io/tags/zk/">zk</a>
    
    <a href="https://anttu.gitee.io/tags/zookeeper/">zookeeper</a>
    
    <a href="https://anttu.gitee.io/tags/%E5%AE%B9%E7%81%BE/">容灾</a>
    
</div>
    </section>

    

    <section class="widget">
        <h3 class="widget-title">其它</h3>
        <ul class="widget-list">
            <li><a href="https://anttu.gitee.io/index.xml">文章 RSS</a></li>
        </ul>
    </section>
</div>
            </div>
        </div>
    </div>
</body>

</html>